/**
 * 
 */
package com.blog.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.blog.core.http.HttpResult;
import com.blog.service.SysDeptService;

/**
 * @author zyj
 *
 */
@Controller
@RequestMapping("dept")
public class SysDeptController {
	
	@Autowired
	SysDeptService sysDeptService;
	
	@RequestMapping(value="/findTree")
	@ResponseBody
	public HttpResult findTree() {
		System.out.println("1");
		
		return HttpResult.ok(sysDeptService.findTree());
	}
	
}
